package service.impl;

import mapper.HandsetMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Handset;

import java.util.List;

@Service
public class HandsetServiceImpl implements service.HandsetService {
    @Autowired
    private HandsetMapper handsetMapper;

    @Override
    public Handset select(Integer hsId) {
        return handsetMapper.select(hsId);
    }

    @Override
    public List<Handset> list() {
        return handsetMapper.list();
    }

    @Override
    public int delete(Integer hsId) {
        return handsetMapper.delete(hsId);
    }
}
